package structures;

import java.util.HashMap;

import javax.swing.table.DefaultTableCellRenderer;

public class TestRenderer extends DefaultTableCellRenderer {
  HashMap<Integer, String> data;
  
    public TestRenderer(HashMap<Integer, String> data)
    {
    	super(); 
    	this.data = data;
    }

    public void setValue(Object value) {
        setText(data.get(value));
    }
}